﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using SampleApplication.Resources;
using YourLastOptionsDialog;

namespace SampleApplication
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void ApplicationBarIconButton_Click(object sender, System.EventArgs e)
        {
            // this is how you can pass in custom configuration values
            var configuration = new OptionsConfiguration();
            configuration.PageTitle = "SAMPLE APPLICATION - OPTIONS"; // use for localization, for example

            // call "Show" to navigate to the options page
            var optionValues = (App.Current as App).SampleOptions;
            OptionsService.Current.Show(optionValues, configuration);
        }
    }
}